﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Grow : MonoBehaviour {
    private float offest;
    // Start is called before the first frame update
    void Start() {
        offest = 0;
        GetComponent<Renderer>().material.SetFloat("_DisappearOffset",0);
    }

    // Update is called once per frame
    void Update() {
        offest += 0.1f;
        offest = Mathf.Min(offest,1);
        GetComponent<Renderer>().material.SetFloat("_DisappearOffset", offest);
    }
}
